const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const AutodllWebpackPlugin = require('autodll-webpack-plugin');
module.exports = {
    mode:'development',
    devtool:false,
    entry:'./src/index.js',
    output:{
        path:path.resolve(__dirname,'dist'),//输出目录
        filename:'bundle.js',               //打包后的文件名
        publicPath:''
    },
    external:{
        jquery:'jjjj',
        lodash:'lllll'
    },
    plugins:[
        new HtmlWebpackPlugin(),
        new AutodllWebpackPlugin({
            inject:true,
            filename:'[name].dll.js',
            entry:{utils:['isarray','is-promise']},
        })
    ]
}